{% extends 'mobile/base.html' %}
{% load static %}

{% block mainbody %}
    <!--头部-->
    <header>
        <div class="header">
            <h1>修改密码</h1>
            <a href="{% url 'mobile_member_index' %}" class="return"><i></i></a>
        </div>
    </header>

    <!--内容区-->
    <article class="main-container loginContent">
        <form action="{% url 'mobile_do_set_password' %}" method="post">
            {% csrf_token %}
            <div class="list">
                <ul class="line">
                    {% if password %}
                        <li><i class="icon-head"></i>
                            <input type="text" id="old_pass" name="old_pass" placeholder="旧密码">
                        </li>
                    {% endif %}
                    <li><i class="icon-head"></i>
                        <input type="text" id="new_pass" name="new_pass" placeholder="新密码">
                    </li>
                    <li class="code"><i class="icon-sms"></i>
                        <input type="tel" id="confirm_pass" name="confirm_pass" placeholder="确认密码">
                    </li>
                </ul>
            </div>
            <div class="button">
                <button type="submit" class="denglu" onclick="dodeng()">确认修改</button>
            </div>
        </form>
        <div class="cs" style="text-align: center;padding: 10px; color: red">
            {{ info }}
        </div>
    </article>
{% endblock %}

